﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;


namespace ExpenseSystem.Model
{
    [TableName("SAM_PAY")]
    public class PayModel:NormalModel
    {
        private long _orderid;
        private int _paytype;//cash=0,tran=1,coupon=2
        private string _coupon; //coupon code
        private string _code;
        private decimal _amount;
        private string _note;
        private long _accounter;
        private string _date;
        private long _customerid;
        private int _purpos;
        private long _ordertype;

        public virtual long CustomerId
        {
            get { return _customerid; }
            set
            {
                if (_customerid == value)
                    return;
                _customerid = value;
                if (!PropertyUpdated.Contains("CustomerId"))
                    PropertyUpdated.Add("CustomerId");
            }
        }
        public virtual long OrderType
        {
            get { return _ordertype; }
            set
            {
                if (_ordertype == value)
                    return;
                _ordertype = value;
                if (!PropertyUpdated.Contains("OrderType"))
                    PropertyUpdated.Add("OrderType");
            }
        }
        public virtual string Date
        {
            get { return _date; }
            set
            {
                if (_date == value)
                    return;
                _date = value;
                if (!PropertyUpdated.Contains("Date"))
                    PropertyUpdated.Add("Date");
            }
        }
        public virtual long Accounter
        {
            get { return _accounter; }
            set
            {
                if (_accounter == value)
                    return;
                _accounter = value;
                if (!PropertyUpdated.Contains("Accounter"))
                    PropertyUpdated.Add("Accounter");
            }
        }

        public virtual string Coupon
        {
            get { return _coupon; }
            set
            {
                if (_coupon == value)
                    return;
                _coupon = value;
                if (!PropertyUpdated.Contains("Coupon"))
                    PropertyUpdated.Add("Coupon");
            }
        }
        public virtual string Note
        {
            get { return _note; }
            set
            {
                if (_note == value)
                    return;
                _note = value;
                if (!PropertyUpdated.Contains("Note"))
                    PropertyUpdated.Add("Note");
            }
        }
        public virtual string Code
        {
            get { return _code; }
            set
            {
                if (_code == value)
                    return;
                _code = value;
                if (!PropertyUpdated.Contains("Code"))
                    PropertyUpdated.Add("Code");
            }
        }
        public virtual long OrderId
        {
            get { return _orderid; }
            set
            {
                if (_orderid == value)
                    return;
                _orderid = value;
                if (!PropertyUpdated.Contains("OrderId"))
                    PropertyUpdated.Add("OrderId");
            }
        }
        public virtual int PayType
        {
            get { return _paytype; }
            set
            {
                if (_paytype == value)
                    return;
                _paytype = value;
                if (!PropertyUpdated.Contains("PayType"))
                    PropertyUpdated.Add("PayType");
            }
        }
        public virtual int Purpos
        {
            get { return _purpos; }
            set
            {
                if (_purpos == value)
                    return;
                _purpos = value;
                if (!PropertyUpdated.Contains("Purpos"))
                    PropertyUpdated.Add("Purpos");
            }
        }
        public virtual decimal Amount
        {
            get { return _amount; }
            set
            {
                if (_amount == value)
                    return;
                _amount = value;
                if (!PropertyUpdated.Contains("Amount"))
                    PropertyUpdated.Add("Amount");
            }
        }
    }
}
